// HttpDownload.h: interface for the CHttpDownload class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_HTTPDOWNLOAD_H__502588F9_5B3A_4FB5_8789_D7C3AD11A99F__INCLUDED_)
#define AFX_HTTPDOWNLOAD_H__502588F9_5B3A_4FB5_8789_D7C3AD11A99F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//##ModelId=450DFB69004E
class CHttpDownload  
{
	//##ModelId=450DFB690062
	class CInetFileException : public CException
	{
	public:
		//##ModelId=450DFB690064
		CInetFileException(int nCode = 0) : m_nErrorCode(nCode) { };
		//##ModelId=450DFB690066
		~CInetFileException() { }

		//##ModelId=450DFB69006D
		int m_nErrorCode;
	};

public:
	//##ModelId=450DFB69004F
	CHttpDownload( HTTPDOWNLOAD& httpdown );
	//##ModelId=450DFB690051
	virtual ~CHttpDownload();

	//##ModelId=450DFB690053
	long Init( HTTPDOWNLOAD& httpdown );
	//##ModelId=450DFB690055
	long Execute();
	//##ModelId=450DFB690056
	void ThrowInetFileException(int nCode);

	//##ModelId=450DFB69005E
	HTTPDOWNLOAD m_httpDownload;
};

#endif // !defined(AFX_HTTPDOWNLOAD_H__502588F9_5B3A_4FB5_8789_D7C3AD11A99F__INCLUDED_)
